package offer;

/**
 * @author cyt
 * @create 2020-05-30 15:10
 */
public class T35 {

    /**
     * 二叉树镜像
     *
     * @param args
     */
    public static void main(String[] args) {

    }

    public void Mirror(TreeNode root) {
        if (root == null) {
            return;
        }
        TreeNode temp = root.left;
        root.left = root.right;
        root.right = temp;
        Mirror(root.right);
        Mirror(root.left);
    }
}
